package com.zy.design.pattern.bridge;

/**
 * @author zhaoyi
 * @date 2021/6/16 12:06
 * 抽象化(Abstraction)角色
 */
public abstract class AbstractionShape {

    //保存一个对实现化对象的引用。
    protected ISize size;
    //保存一个对实现化对象的引用。
    protected IColor color;

    protected AbstractionShape(ISize size, IColor color) {
        this.size = size;
        this.color = color;
    }

    abstract void draw();
}
